package com.jhgsys.internal.peccancy.entity;


import java.io.Serializable;
import java.util.Date;

import lombok.Data;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import com.fasterxml.jackson.annotation.JsonFormat;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

/**
 * 奖惩规则变更记录 Entity
 *
 * @author admin
 * @date 2024-08-08 13:20:30
 */
@Data
@TableName("peccancy_clause_rule_record")
public class PeccancyClauseRuleRecord implements Serializable {

    private static final long serialVersionUID = 5784598543018589596L;
    /**
     * 
     */
    @TableId(value = "clause_rule_record_id", type = IdType.ASSIGN_UUID)
    @Size(max = 32, message = "{noMoreThan}")
    private String clauseRuleRecordId;

    /**
     * 
     */
    @TableField("clause_rule_id")
    @NotBlank(message = "{required}")
    @Size(max = 32, message = "{noMoreThan}")
    private String clauseRuleId;

    /**
     * 
     */
    @TableField("change_time")
    @Size(max = 3, message = "{noMoreThan}")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date changeTime;

    /**
     * 
     */
    @TableField("change_type")
    @NotNull(message = "{required}")
    @Size(max = 1, message = "{noMoreThan}")
    private String changeType;
    /**
     * 
     */
    @TableField("before_json")
    @Size(max = 2147483647, message = "{noMoreThan}")
    private String beforeJson;

    /**
     * 
     */
    @TableField("after_json")
    @Size(max = 2147483647, message = "{noMoreThan}")
    private String afterJson;

    /**
     * 
     */
    @TableField("created_by")
    @Size(max = 32, message = "{noMoreThan}")
    private String createdBy;

    /**
     * 
     */
    @TableField("created_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createdTime;

    /**
     * 
     */
    @TableField("updated_by")
    @Size(max = 32, message = "{noMoreThan}")
    private String updatedBy;

    /**
     * 
     */
    @TableField("updated_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updatedTime;

    /**
     * 
     */
    @TableField("deleted_by")
    @Size(max = 32, message = "{noMoreThan}")
    private String deletedBy;

    /**
     * 
     */
    @TableField("deleted_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date deletedTime;

    /**
     * 
     */
    @TableField("deleted_flg")
    @Size(max = 1, message = "{noMoreThan}")
    private String deletedFlg;
}